﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    /// <summary>
    /// 设备维修记录表
    /// </summary>
    [Serializable]
    public partial class EquipmentRepair
    {
        public EquipmentRepair()
        { }
        #region Model
        private int _id;
        private int _eid;
        private DateTime _reportdate;
        private string _allower;
        private int _repairtype;
        private string _repaircause;
        private decimal? _budget;
        private string _repairer;
        private int? _timeday;
        private decimal? _cost;
        private string _result;
        private string _checker;
        private DateTime? _returndate;
        private bool _isreturn = false;
        public Model.LabEquipment Equipment { get; set; }
        /// <summary>
        /// 自增ID
        /// </summary>
        public int ID
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 设备ID
        /// </summary>
        public int EID
        {
            set { _eid = value; }
            get { return _eid; }
        }
        /// <summary>
        /// 填报日期
        /// </summary>
        public DateTime reportDate
        {
            set { _reportdate = value; }
            get { return _reportdate; }
        }
        /// <summary>
        /// 维修批准人
        /// </summary>
        public string allower
        {
            set { _allower = value; }
            get { return _allower; }
        }
        /// <summary>
        /// 维修类型
        /// </summary>
        public int RepairType
        {
            set { _repairtype = value; }
            get { return _repairtype; }
        }
        /// <summary>
        /// 维修类型外键关联
        /// </summary>
        public Model.Parameter RepairTypeParam { get; set; }
        /// <summary>
        /// 维修原因
        /// </summary>
        public string RepairCause
        {
            set { _repaircause = value; }
            get { return _repaircause; }
        }
        /// <summary>
        /// 经费预算
        /// </summary>
        public decimal? budget
        {
            set { _budget = value; }
            get { return _budget; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string repairer
        {
            set { _repairer = value; }
            get { return _repairer; }
        }
        /// <summary>
        /// 维修工时(日)
        /// </summary>
        public int? timeDay
        {
            set { _timeday = value; }
            get { return _timeday; }
        }
        /// <summary>
        /// 支出经费
        /// </summary>
        public decimal? cost
        {
            set { _cost = value; }
            get { return _cost; }
        }
        /// <summary>
        /// 维修结果
        /// </summary>
        public string result
        {
            set { _result = value; }
            get { return _result; }
        }
        /// <summary>
        /// 验收人
        /// </summary>
        public string checker
        {
            set { _checker = value; }
            get { return _checker; }
        }
        /// <summary>
        /// 反馈日期
        /// </summary>
        public DateTime? returnDate
        {
            set { _returndate = value; }
            get { return _returndate; }
        }
        /// <summary>
        /// 是否反馈
        /// </summary>
        public bool isReturn
        {
            set { _isreturn = value; }
            get { return _isreturn; }
        }
        #endregion Model

    }
}
